package com.dingpeikeji.quickdeer.modules.rcpt.entity;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;

/**
 * 用户最新发票信息Entity
 * @author dingpei
 * @version 2017-03-03
 */
public class TUsersRcpt extends DataEntity<TUsersRcpt> {
	
	private static final long serialVersionUID = 1L;
	private Integer alwaysid;		// 主键
	private String userid;		// 用户ID
	private String title;		// 发票抬头
	private String dutyParagraph;// 纳税人识别号
	private String content;		// 发票内容
	private String address;		// 收件地址
	private String receiver;		// 收件人
	private String mobile; // 手机号
	private String postcode; // 邮编
	private String rcpttype; // 发票类型
	private String outkmsfee; // 超公里标准价
	private String outtimefee; // 超时长标准价
	private String dirverfee; // 司机食宿费
	private Double totalOutkmsfee;		// 发票金额
	private Double totalOuttimefee;		// 发票金额
	private Double totalRirverfee;		// 发票金额
	public TUsersRcpt() {
		super();
	}

	public TUsersRcpt(String id){
		super(id);
	}

	public Double getTotalOutkmsfee() {
		return totalOutkmsfee;
	}

	public void setTotalOutkmsfee(Double totalOutkmsfee) {
		this.totalOutkmsfee = totalOutkmsfee;
	}

	public Double getTotalOuttimefee() {
		return totalOuttimefee;
	}

	public void setTotalOuttimefee(Double totalOuttimefee) {
		this.totalOuttimefee = totalOuttimefee;
	}

	public Double getTotalRirverfee() {
		return totalRirverfee;
	}

	public void setTotalRirverfee(Double totalRirverfee) {
		this.totalRirverfee = totalRirverfee;
	}

	public String getDutyParagraph() {
		return dutyParagraph;
	}

	public void setDutyParagraph(String dutyParagraph) {
		this.dutyParagraph = dutyParagraph;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getAlwaysid() {
		return alwaysid;
	}

	public void setAlwaysid(Integer alwaysid) {
		this.alwaysid = alwaysid;
	}
	

	public String getOutkmsfee() {
		return outkmsfee;
	}

	public void setOutkmsfee(String outkmsfee) {
		this.outkmsfee = outkmsfee;
	}

	public String getOuttimefee() {
		return outtimefee;
	}

	public void setOuttimefee(String outtimefee) {
		this.outtimefee = outtimefee;
	}

	public String getDirverfee() {
		return dirverfee;
	}

	public void setDirverfee(String dirverfee) {
		this.dirverfee = dirverfee;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=1, max=200, message="发票抬头长度必须介于 1 和 200 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=1, max=200, message="收件地址长度必须介于 1 和 200 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=1, max=50, message="收件人长度必须介于 1 和 50 之间")
	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	public String getRcpttype() {
		return rcpttype;
	}

	public void setRcpttype(String rcpttype) {
		this.rcpttype = rcpttype;
	}

}